package com.zzyl.controller;

import com.zzyl.base.PageRequest;
import com.zzyl.base.PageResponse;
import com.zzyl.base.ResponseResult;
import com.zzyl.dto.NurseRequestDto;
import com.zzyl.service.NurseProjectService;
import com.zzyl.vo.NurseVo;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @auhor wanganzhe
 * @modified 2024/7/18
 * @description
 */
@RestController
@RequestMapping("/nursing_project")
@Api(tags = "护理项目相关接口")
public class NurseController extends BaseController{

    private final NurseProjectService nurseProjectService;

    public NurseController(NurseProjectService nurseProjectService) {
        this.nurseProjectService = nurseProjectService;
    }

    @GetMapping
    public ResponseResult<PageResponse<NurseVo>> getNurseProjectList(NurseRequestDto dto){
        PageResponse<NurseVo> result = nurseProjectService.getNurseProjectList(dto);
        return success(result);
    }
}
